<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>
        <p id="demo03"></p>
    </div>
    <div>
        <p id="demo04-theme"></p>
        <p id="demo04-content"></p>
        <p></p>

    </div>
    <script>
        // 训练1
        let hight = 8848.86;
        console.log(hight+ "m");
        // 训练2
        console.log("E:\\JavaScript\\Code\\demo");
        // 训练3
        let russiaArea = 17100000;
        document.getElementById("demo03").innerHTML = russiaArea + "km" + "<sup>2</sup>";
        // 训练4
        let demo02_Theme = "迈克尔.乔丹"
        document.getElementById("demo04-theme").innerHTML = demo02_Theme;
        document.getElementById("demo04-content").innerHTML = "<p>别名：飞人<br>身高：198cm<br>总得分：32292分<br>主要奖项：6次NBA总冠军<br>场上位置：得分后卫/小前锋</p>"
        // 训练5 
        let principal =100000;
        let all = principal + (principal*0.0275*3);
        document.write("三年后本息合计"+ all + "元")
        document.write("<p></p>")
        // 训练6
        let passGrade = 60;
        let grade= 65
        let result  = (passGrade<=grade?"及格":"不及格")
        document.write(result)
        document.write("<p></p>")
        // 训练7
        let fieldArea = (50+30)/2*30;
        document.write("稻田面积为"+fieldArea +"平方米")
        document.write("<p></p>")
        
    </script>
</body>
</html>